import Vue from 'vue'

import VueRouter from 'vue-router'
import Yi1 from '../luyou/Yi1.vue'
import Deng from '../mianjin/Deng.vue'
import Zhu from '../mianjin/Zhu.vue'
import Shou from '../mianjin/Shou.vue'
import Cang2 from '../mianjin/Cang2.vue'
import Shou2 from '../mianjin/Shou2.vue'
import Wo2 from '../mianjin/Wo2.vue'
import Xi2 from '../mianjin/Xi2.vue'
import Tiao from '../mianjin/Tiao.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/Deng',
    name: 'Deng',
    component: Deng
  }
  , {
    path: '/Zhu',
    name: 'Zhu',
    component: Zhu
  },
  {
    path: '/Tiao/:id',
    name: 'Tiao',
    component: Tiao
  },
  {
    path: '/Shou',
    name: 'Shou',
    component: Shou,
    redirect: '/Shou/Shou2',
    children: [
      {
        path: 'Cang2',
        name: 'Cang2',
        component: Cang2
      },
      {
        path: 'Shou2',
        name: 'Shou2',
        component: Shou2
      },
      {
        path: '/Wo2',
        name: 'Wo2',
        component: Wo2
      },
      {
        path: 'Xi2',
        name: 'Xi2',
        component: Xi2
      }

    ]
  }

]

const router = new VueRouter({
  linkActiveClass: 'aa',
  linkExactActiveClass: 'bb',
  mode: 'hash',
  routes
})

export default router
